package com.yami.shop.bean.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * 红包打开记录Daw
 *
 * @author 刘聪
 */

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "tz_red_packet_record_daw")
@Schema(description = "红包打开记录Daw")
public class RedPacketRecordDaw {

    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 红包id
     */
    @Schema(description = "红包id")
    @TableField(value = "red_packet_id")
    private Integer redPacketId;

    /**
     * token_daw
     */
    @Schema(description = "token_daw")
    @TableField(value = "token_id")
    private String tokenId;

    /**
     * 抢到红包用户的用户标识
     */
    @Schema(description = "抢到红包用户的用户标识")
    @TableField(value = "user_id")
    private String userId;
    /**
     * 创建时间
     */
    @Schema(description = "创建时间")
    @TableField(value = "create_time")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @Schema(description = "更新时间")
    @TableField(value = "update_time")
    private LocalDateTime updateTime;

}
